-- GENERATED SPELL FOR [Grishna Falconwing] --


function spell0_19988(pUnit, Event) --@Bestial Wrath,n/a--
pUnit:FullCastSpellOnTarget(37587,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19988', 18267, 1)
end

function spell1_19988(pUnit, Event) --@Detect Whispers,n/a--
pUnit:FullCastSpellOnTarget(37473,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19988', 592, 1)
end

function spell2_19988(pUnit, Event) --@Grishna Kaliri,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(35109,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_19988', 1, 1)
end

function spell3_19988(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19988', 500, 1)
end

function Sorts_19988(pUnit, Event)
local choix_sorts_19988 = math.random(0, 3)
if choix_sorts_19988 == 0 then
pUnit:RegisterEvent('spell0_19988', 1, 1)
end
if choix_sorts_19988 == 1 then
pUnit:RegisterEvent('spell1_19988', 1, 1)
end
if choix_sorts_19988 == 2 then
pUnit:RegisterEvent('spell2_19988', 1, 1)
end
if choix_sorts_19988 == 3 then
pUnit:RegisterEvent('spell3_19988', 1, 1)
end
end

function mob19988_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19988', math.random(1500, 3000), 1)
end

function mob19988_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19988_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19988_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19988, 1, 'mob19988_Action')
RegisterUnitEvent(19988, 2, 'mob19988_Leave')
RegisterUnitEvent(19988, 3, 'mob19988_Kill')
RegisterUnitEvent(19988, 4, 'mob19988_Die')
